﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartHotel.Model
{
    public class JiFen
    {
        [Key]
        public int Id {  get; set; }//一定要有的属性 key ,是EF框架要求要有
        /// <summary>
        /// userid
        /// </summary>
        public int UserId {  get; set; } //对应了Member 类里的主键 Id
        /// <summary>
        /// 
        /// </summary>
        public DateTime Time { get; set; }//得到/失去 积分的时间
        public int JiFenCount {  get; set; }//积分数量
        public string Reason {  get; set; }//得到/失去 积分的原因
    }
}
